/**
 * Created by henrick on 2017/3/21.
 */
(function () {
    window.page = {
        login : function () {
            $("#userlogin").attr('style','display: block; top: 50%; margin-top: -245px; opacity: 1;');
            $("#login").fadeIn();
        },
        loginClose: function () {
            $("#userlogin").removeAttr('style');
            $("#login").fadeOut();
        },
        initFooter: function () {
            var bHeight = $(document).height();
            var wHeight = $(window).height();
            if(bHeight-83<=wHeight){
                $("#footer").css({position:'absolute',right: 0,left:0,bottom:0});
                $("#login").fadeOut();
            }
        }
    }

    page.initFooter();
})();
